﻿using System;
using System.Collections;
using System.Configuration;
using System.Net.NetworkInformation;


public partial class controls_ucInfo : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        txt_data.Text = DateTime.Now.Day + "/" + DateTime.Now.Month + "/" + DateTime.Now.Year;
        txt_ora.Text = DateTime.Now.ToLongTimeString();
        //txt_utiliz.Text =Application["userCount"].ToString() ?? "0";

        //--------ip-ul calculatorului
        //NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
        //IPInterfaceProperties adapterProperties = adapters[0].GetIPProperties();
        //UnicastIPAddressInformationCollection uniCast = adapterProperties.UnicastAddresses;
        //if (uniCast.Count > 0)
        //{
        //    Txt_ip.Text = uniCast[0].Address.ToString();
        //}

       // txt_utiliz.Text = Session["username"].ToString();
    }
}
